package com.hifar.test.collectdata.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 采集数据列表查询
 * @date 2025/2/12 8:53
 */
@Data
@ApiModel("采集数据")
public class CollectDataQueryParamVO {

    @ApiModelProperty("当前页")
    // @NotNull(message = "pageNo不能为空!")
    @Min(value = 1L, message = "pageNo不能小于1")
    private Integer pageNo;

    @ApiModelProperty("每页条数")
    // @NotNull(message = "pageSize不能为空!")
    @Min(value = 1L, message = "pageSize不能小于1")
    private Integer pageSize;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开始时间")
    private Date startTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("设备id")
    @NotBlank(message = "设备id不能为空!")
    private String equipId;

}
